#ifndef VPROJECTDATA_H
#define VPROJECTDATA_H

#include <QString>
#include <QStringList>
#include <QFileInfo>
#include "VDirData.h"
#include "VFileData.h"

class VProjectData
{
public:
    VProjectData(QString path);
    void load();
    void reload();
    bool is_child(QString path);
    QList<QFileInfo> search(VFileData::VHeadFile &file, char mode, bool folder=false);
    static QStringList get_names(QString path);

//    VFileData test;
    QString _project_name;
    QString _path;
    QString _output_path;
    QString _output_type;
    QString _output_folder;
    QString _output_name;
    QString _output_list_path;
    QStringList _cparam_summary;
    QStringList _linker_summary;
    QStringList _project_file_path_list;
	QList<VDirData*> _include_path;
private:
    uint _last_time;
    void free_dir_data();
    bool matching(QString path, QString name, char mode);
};

#endif // VPROJECTDATA_H
